package com.devicestatus;

import com.devicestatus.service.GizwitsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
public class DevicestatusApplication  implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(DevicestatusApplication.class, args);
	}
	@Autowired
	private GizwitsService gizwitsService;
	@Override
	public void run(String... strings) throws Exception {
		gizwitsService.getDeviceStatus();
	}
}
